package com.generator.util;

import java.io.IOException;
import java.util.Properties;

/**
 * 读配置文件中的属性
 * @author Administrator
 */
public class ParamsToProperties {
    private static Properties properties = new Properties();
    static {
        try {
            properties.load(ParamsToProperties.class.getClassLoader().getResourceAsStream("generator/generator.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    /**
     * 获取配置文件属性
     * @return
     */
    public static Properties getProperties(){
        return properties;
    }

//    public static void main(String[] args) {
//        System.out.println(getProperties().getProperty("projectSrc"));
//    }
}